import request from '@/utils/request'

export function getDataTypeGetallDept() {
  return request({
    url: 'api/datatype/getalldept',
    method: 'get'
  })
}

export function getQuerySharingApp(data) {
  return request({
    url: 'api/dataResourceMounting/querySharingApp',
    method: 'post',
    data: data
  })
}

export function getDataResource(params) {
  return request({
    url: 'api/dataResource',
    method: 'get',
    params
  })
}

export function getDataResourceMounting(data) {
  return request({
    url: 'api/dataResourceMounting',
    method: 'post',
    data: data
  })
}

export function getQuerySharingAppDtail(params) {
  return request({
    url: `api/dataResourceMounting/querySharingAppDtail`,
    method: 'get',
    params
  })
}

export function delDataResourceMounting(params) {
  return request({
    url: 'api/dataResourceMounting/delResourceMounting',
    method: 'get',
    params
  })
}
export function dataResourceMountingDelResource(params) {
  return request({
    url: 'api/dataResourceMounting/delResource',
    method: 'get',
    params
  })
}

export function getCatalogConfig(params) {
  return request({
    url: 'api/catalogConfig/list',
    method: 'get',
    params
  })
}

export function getCatalogConfigUpdate(data) {
  return request({
    url: 'api/catalogConfig/update',
    method: 'post',
    data: data
  })
}
